package com.dks.mapper;

import java.util.*;

import com.dks.dto.FeedbackSheetDetailDto;
import com.dks.dto.FeedbackSheetDto;
import com.dks.models.FeedbackSheet;
import com.dks.models.FeedbackSheetTemplate;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FeedbackSheetMapper{

    Integer insert(FeedbackSheet feedbackSheet);

    Integer update(FeedbackSheet feedbackSheet);

    Integer delete(@Param("id") Integer id);

    FeedbackSheet select(@Param("id") Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<FeedbackSheet> getByMapList(Map<String, Object> map);

    List<FeedbackSheetDto> getFeedbackSheetList(Map<String, Object> map);

    Integer updateByCode(FeedbackSheet feedbackSheet);

    FeedbackSheet selectByBfCode(@Param("bfCode") String bfCode);

    /** 统计：课堂反馈-已填写数量*/
    Integer countFeedbackSheetNum(@Param("qsClassId")long qsClassId);

    FeedbackSheetTemplate getFeedbackSheetTemplateInfo(Integer feedbackSheetTemplateId);

    FeedbackSheetDetailDto getFeedbackSheetDetail(Map<String, Object> map);
}
